home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / dalla rivista / host contacted / jikes.lha / jikes-1.11 / src / tab.h < prev    next >
C/C++ Source or Header  |  2000-01-06  |  806b  |  34 lines

  1. // $Id: tab.h,v 1.5 2000/01/06 06:46:47 lord Exp $
  2. //
  3. // This software is subject to the terms of the IBM Jikes Compiler
  4. // License Agreement available at the following URL:
  5. // http://www.ibm.com/research/jikes.
  6. // Copyright (C) 1996, 1998, International Business Machines Corporation
  7. // and others.  All Rights Reserved.
  8. // You must accept the terms of that agreement to use this software.
  9. //
  10. #ifndef tab_INCLUDED
  11. #define tab_INCLUDED
  12.  
  13. #include "config.h"
  14. #ifdef HAVE_WCHAR_H
  15. # include <wchar.h>
  16. #endif
  17. #include <string.h>
  18.  
  19. class Tab
  20. {
  21. public:
  22.     enum { DEFAULT_TAB_SIZE = 8 };
  23.  
  24.     inline static int TabSize() { return tab_size; }
  25.     inline static void SetTabSize(int value) { tab_size = value; }
  26.  
  27.     static int Wcslen(wchar_t *line, int start, int end);
  28.  
  29. private:
  30.     static int tab_size;
  31. };
  32. #endif
  33.  
  34.